﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="ViewProviderUserType.aspx.cs" Inherits="admin_user_Access_ViewProviderUserType" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td colspan="2">
                    <h1>View Provider User Type</h1>
                </td>
            </tr>
            <tr>
                <td>
                    <b>Provider</b> :
                    <asp:DropDownList ID="ddlProviderCompany" runat="server" AutoPostBack="true" onselectedindexchanged="ddlProviderCompany_SelectedIndexChanged">
                        <asp:ListItem Selected="True" Value="0">Select</asp:ListItem>
                        <asp:ListItem Value="11">AZCp Insurance</asp:ListItem>
                        <asp:ListItem Value="12">MSIG Insurance</asp:ListItem>
                        <asp:ListItem Value="29">LMG Insurance</asp:ListItem>                        
                        <asp:ListItem Value="31">Chartis Insurance</asp:ListItem>
                        <asp:ListItem Value="32">Bangkok Insurance</asp:ListItem>
                        
                    </asp:DropDownList>
                </td>
                <td width="30%" align="right" style="text-align:right;">
                    <asp:Button ID="btnAddNew" runat="server" Text="Add New" OnClick="btnAddNew_Click" />
                </td>
            </tr>
             <tr>
                <td colspan="2">
                    <asp:GridView ID="grvProviderUserType" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" Cellspacing="3" CellPadding="3" Width="100%" DataKeyNames="CEID" DataSourceID="sqlDsProviderUser"
                        EmptyDataText="There are no data records to display." CssClass="admin_gridstyle" PagerStyle-CssClass="pgr" 
                        GridLines="None" OnSelectedIndexChanged="grvProviderUserType_SelectedIndexChanged">
                        <Columns>
                            <asp:BoundField DataField="CEID" HeaderText="UseId" InsertVisible="False"
                                ReadOnly="True" SortExpression="CEID" Visible="False" />
                            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                            <asp:BoundField DataField="ProviderUserType" HeaderText="User Type"
                                SortExpression="ProviderUserType" />
                            <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                            <asp:BoundField DataField="ModifiedDate" HeaderText="Modified Date" SortExpression="ModifiedDate" />
                            <asp:CommandField ShowSelectButton="True" SelectText="Edit" />
                        </Columns>
                        <FooterStyle />
                        <PagerStyle />
                        <SelectedRowStyle />
                        <HeaderStyle CssClass="admin_gridheader" />
                        <EditRowStyle />
                        <AlternatingRowStyle CssClass="admin_gridodd" />
                        <RowStyle CssClass="admin_grideven" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="sqlDsProviderUser" runat="server" ConnectionString="<%$ ConnectionStrings:TH.CX_DBConnectionString %>"
                        SelectCommand="sprocProviderUserTypeSelectItemList" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="ddlProviderCompany" Name="ProviderCompanyId" PropertyName="SelectedValue" Type="Int64" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

